﻿<local:KeyedWindowBase x:Class="MainWindow"
                       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                       xmlns:System="clr-namespace:System;assembly=mscorlib"
                       xmlns:local="clr-namespace:RawExplorer2.UI"
                       xmlns:tokenlib="clr-namespace:RawExplorer2.TokenLib;assembly=TokenLib"
                       x:Name="MainWindow"
                       Title="Raw Explorer"
                       Width="800"
                       Height="600"
                       MinWidth="640"
                       MinHeight="480"
                       Icon="../../AppIcon.ico"
                       TextOptions.TextFormattingMode="Display">
	<DockPanel>
		<Menu HorizontalAlignment="Stretch" DockPanel.Dock="Top">
			<MenuItem Header="_File">
				<MenuItem Command="{Binding NotImplementedCommand}" Header="New Library" />
				<Separator />
				<MenuItem Command="{Binding NotImplementedCommand}" Header="Open Library..." />
				<MenuItem Command="{Binding NotImplementedCommand}" Header="Open Recent" />
				<Separator />
				<MenuItem Command="{Binding NotImplementedCommand}" Header="Save Library" />
				<MenuItem Command="{Binding NotImplementedCommand}" Header="Save Library As..." />
				<Separator />
				<MenuItem Name="mnuImportRaws"
				          Command="{Binding Path=ImportRawsCommand}"
				          Header="Import RAWs..." />
				<MenuItem Command="{Binding NotImplementedCommand}" Header="Export" />
				<Separator />
				<MenuItem x:Name="mnuExit"
				          Command="{Binding Path=ExitCommand}"
				          Header="E_xit" />
			</MenuItem>
			<MenuItem Header="_Edit">
				<MenuItem Command="{Binding NotImplementedCommand}"
				          Header="_Undo"
				          InputGestureText="Ctrl+Z" />
				<MenuItem Command="{Binding NotImplementedCommand}"
				          Header="_Redo"
				          InputGestureText="Ctrl+Z" />
				<Separator />
				<MenuItem Command="{Binding NotImplementedCommand}"
				          Header="Cu_t"
				          InputGestureText="Ctrl+X">
					<MenuItem.Icon>
						<local:AutoGreyableImage Source="../../Icons/CutHS.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="{Binding NotImplementedCommand}"
				          Header="_Copy"
				          InputGestureText="Ctrl+C">
					<MenuItem.Icon>
						<local:AutoGreyableImage Source="../../Icons/CopyHS.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="{Binding NotImplementedCommand}"
				          Header="_Paste"
				          InputGestureText="Ctrl+V">
					<MenuItem.Icon>
						<local:AutoGreyableImage Source="../../Icons/PasteHS.png" />
					</MenuItem.Icon>
				</MenuItem>
				<MenuItem Command="{Binding NotImplementedCommand}"
				          Header="_Delete"
				          InputGestureText="Delete">
					<MenuItem.Icon>
						<local:AutoGreyableImage Source="../../Icons/DeleteHS.png" />
					</MenuItem.Icon>
				</MenuItem>
			</MenuItem>
			<MenuItem Command="{Binding NotImplementedCommand}" Header="_Library" />
			<MenuItem Command="{Binding NotImplementedCommand}" Header="_Batch" />
			<MenuItem Command="{Binding NotImplementedCommand}" Header="_Tools" />
			<MenuItem Command="{Binding NotImplementedCommand}" Header="_Help" />
		</Menu>
		<ToolBarTray DockPanel.Dock="Top">
			<ToolBar ToolBarTray.IsLocked="True">
				<Button Command="{Binding NotImplementedCommand}" IsEnabled="False">
					<StackPanel Orientation="Horizontal">
						<local:AutoGreyableImage Source="../../Icons/NavBack.png" />
						<Path Width="6"
						      Margin="4"
						      HorizontalAlignment="Right"
						      VerticalAlignment="Center"
						      Data="{StaticResource DropDownPath}"
						      Fill="#FF527DB5"
						      Stretch="Uniform" />
					</StackPanel>
				</Button>
				<Button Command="{Binding NotImplementedCommand}">
					<StackPanel Orientation="Horizontal">
						<local:AutoGreyableImage Source="../../Icons/NavForward.png" />
						<Path Width="6"
						      Margin="4"
						      HorizontalAlignment="Right"
						      VerticalAlignment="Center"
						      Data="{StaticResource DropDownPath}"
						      Fill="#FF527DB5"
						      Stretch="Uniform" />
					</StackPanel>
				</Button>
				<Separator />
				<Button Command="{Binding NotImplementedCommand}">
					<StackPanel Orientation="Horizontal">
						<local:AutoGreyableImage Source="../../Icons/Collapse.png" />
					</StackPanel>
				</Button>
				<Button Command="{Binding AddObjectCommand}" IsEnabled="{Binding Path=IsAddObjectEnabled}">
					<StackPanel Orientation="Horizontal">
						<local:AutoGreyableImage Source="../../Icons/AddObject.png" />
					</StackPanel>
				</Button>
			</ToolBar>
		</ToolBarTray>
		<StatusBar DockPanel.Dock="Bottom">
			<StatusBar.ItemsPanel>
				<ItemsPanelTemplate>
					<Grid>
						<Grid.RowDefinitions>
							<RowDefinition Height="*" />
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
					</Grid>
				</ItemsPanelTemplate>
			</StatusBar.ItemsPanel>
			<StatusBarItem Grid.Column="0" Padding="8,3,8,3">
				<StackPanel Orientation="Horizontal">
					<TextBlock Text="{Binding Path=StatusText}" />
					<Separator />
				</StackPanel>
			</StatusBarItem>
			<StatusBarItem Grid.Column="3" Padding="8,3,8,3">
				<StackPanel Orientation="Horizontal">
					<TextBlock>Objects:&#160;</TextBlock>
					<TextBlock Text="{Binding Path=ObjectCount}" />
				</StackPanel>
			</StatusBarItem>
		</StatusBar>
		<Grid Margin="8">
			<Grid.ColumnDefinitions>
				<ColumnDefinition Width="*" MinWidth="150" />
				<ColumnDefinition Width="5" />
				<ColumnDefinition Width="2*" MinWidth="300" />
			</Grid.ColumnDefinitions>
			<local:ObjectTree Grid.Column="0"
			                  HorizontalAlignment="Stretch"
			                  VerticalAlignment="Stretch"
			                  Library="{Binding Path=Library}"
			                  SelectedNode="{Binding Path=CurrentNode,
			                                         Mode=OneWayToSource}"
			                  SelectedObject="{Binding Path=CurrentObject,
			                                           Mode=OneWayToSource}" />
			<GridSplitter Grid.Column="1"
			              HorizontalAlignment="Stretch"
			              Background="Transparent" />
			<local:ObjectEditor x:Name="ObjectEditor"
			                    Grid.Column="2"
			                    HorizontalAlignment="Stretch"
			                    VerticalAlignment="Stretch"
			                    DataContext="{Binding Path=ObjectEditor}" />
		</Grid>
	</DockPanel>
</local:KeyedWindowBase>